projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f2f950
)
Avoid a compilation warning in srt-mode.el
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 16 Jun 2019 13:42:30 +0000
(15:42 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 16 Jun 2019 13:42:30 +0000
(15:42 +0200)
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help): Add hack to
avoid compilation warning about slot that has to exist at this
point.
lisp/cedet/srecode/srt-mode.el
patch
|
blob
|
history
diff --git
a/lisp/cedet/srecode/srt-mode.el
b/lisp/cedet/srecode/srt-mode.el
index 1b58ce326cecf2b0a95e57b38415317f0bdf044c..660225925e0460852c0af6ab637ac49db3cdd165 100644
(file)
--- a/
lisp/cedet/srecode/srt-mode.el
+++ b/
lisp/cedet/srecode/srt-mode.el
@@
-247,9
+247,10
@@
we can tell font lock about them.")
(let* ((C (car chl))
(name (symbol-name C))
(key (when (slot-exists-p C 'key)
- (oref C key)))
- (showexample t)
- )
+ ;; This avoids a compilation warning, but we
+ ;; know that 'key exists here.
+ (slot-value C (intern "key" obarray))))
+ (showexample t))
(setq chl (cdr chl))
(setq chl (append (eieio-class-children C) chl))